﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using mBlog.Core;
using mBlog.Models;
using Ninject;

namespace mBlog.Infrastructure.AutoMapper
{
    public class CategoryResolver
    {
        public static IList<Category> ResolveCategories(string categoryUrlName)
        {
            var categories = new List<Category> {new Category() {UrlName = categoryUrlName, Name = categoryUrlName}};

            return categories;
        }

        public static string ResolveCategoryName(IList<Category> categories)
        {
            return categories.First().UrlName;
        }
    }
}